Skip to content

feat(gui): implement user based font scaling #1457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Mauller
Copy link

@Mauller Mauller commented Aug 14, 2025

This PR adds user based font scaling adjustment to the game.
The value can be set within the options.ini by setting UserFontScale = 100 where the value is a percentage, the default being 100% of the original scale.

The scaling acts on the ingame scaling function to give some user flexibility, by default it is set to 100% so the engine scales using default behaviour.


TODO:

  • Replicate in generals

@Mauller Mauller self-assigned this Aug 14, 2025
@Mauller Mauller added Enhancement Is new feature or request GUI For graphical user interface Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour labels Aug 14, 2025
@Mauller Mauller force-pushed the feat-user-font-adjust branch from 828eaa2 to b632b27 Compare August 14, 2025 19:00
@Mauller
Copy link
Author

Mauller commented Aug 14, 2025

Tweaked some naming but theres likely going to be the odd bit of name tweaking still.

@@ -101,6 +101,7 @@ class GlobalLanguage : public SubsystemInterface
FontDesc m_creditsNormalFont;

Real m_resolutionFontSizeAdjustment;
Real m_userFontSizeAdjustment;
Copy link
Author

@Mauller Mauller Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to remove this as i put the variable in the global data in the end and forgot to get rid of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Is new feature or request Gen Relates to Generals GUI For graphical user interface Minor Severity: Minor < Major < Critical < Blocker ZH Relates to Zero Hour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant